import instance from '@/utils/request'

// 注册
export const userRegisterService = (form) => {
  return instance.post('/api/reguser', {
    username: form.name,
    password: form.password,
    repassword: form.passwordTwo
  })
}

// 登录
export const uerLoginService = (form) => {
  return instance.post('/api/login', {
    username: form.name,
    password: form.password
  })
}
